home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-2.iso / Files II / Prog / B-C / CPictureButton.sit / CPictureButtonƒ / About CPictureButton next >
Encoding:
Text File  |  1992-09-27  |  2.2 KB  |  58 lines  |  [TEXT/KAHL]

  1.  
  2.  
  3.     CPictureButton - For the TCL by Thomas J. Vilot.
  4.     
  5.     CPictureButton is a subclass of CPicture. It is useful if you desire a nice
  6.     pict-based, 3-D button. It correctly handles updating your picture button when the
  7.     button is pressed, activated, and deactivated. You can use it much as you would a
  8.     conventional button, specifying a command that it will submit to itsSupervisor.
  9.     
  10.     All you need to do is specify it much as you would a CPicture:
  11.     
  12.     void CPictureButton::IPictureButton( CView *anEnclosure, CBureaucrat *aSupervisor,
  13.                     short aHEncl, short aVEncl,short width,  short height,
  14.                     SizingOption aHSizing, SizingOption aVSizing,
  15.                     short enabledID,  short disabled, short pressed)
  16.                     
  17.     where enabledID is the PICT_ID of the picture button when it is active, disabled is
  18.     the PICT_ID of the disabled picture resource, and pressed is the PICT_ID to use when
  19.     the picture button is being pressed (tracked).
  20.     
  21.     You will, of course, need to create your own PICT resources to suit your needs.
  22.     
  23.     To use it, you must be running the TCL. The object uses Object I/O for saving
  24.     and restoring its instance variables to and from a stream, but you do not need
  25.     Object I/O in order to use it. You can simply remove those two methods.
  26.     
  27.     If you are interested in Object I/O, you can contact them at:
  28.         Object Factory, Incorporated
  29.         14350 92nd Ave. N.
  30.         Maple Grove, MN 55369
  31.         612.420.9876
  32.         
  33.         or on America Online, objectFactory.
  34.         
  35.     I will be subclassing this later to utilize toggled picture buttons, or you can
  36.     be apropriately adventurous yourself. Another nice variant would be a CPictureButton
  37.     that allows you to send it a string for its name, much like a conventional button.
  38.     
  39.     Missing from this object:
  40.     
  41.         What do we do if the monitor is set to one-bit? Currently, we still use the
  42.         picts that were defined by the user. We should really have another set of PICT
  43.         resource IDs that are called if the monitor can not display grayscale.
  44.         
  45.         
  46.         
  47.         
  48.     CPictureButton is not System 7 dependent, but is System 7 friendly.
  49.     
  50.     
  51.     
  52.     This code is freeware...use it to your hearts content, or utilize that nifty trashcan
  53.     icon on that thar desktop of yours......
  54.     
  55.     Comments or suggestions?
  56.         CompuServe: Thomas J. Vilot, 70740,1674
  57.         AOL: TJVilot
  58.         InterNet: VILOT@BIGBOY.CIS.TEMPLE.EDU